package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;



/**
 * SemesterDTO entity. @author MyEclipse Persistence Tools
 */

public class CSSemesterDTO extends java.lang.Object implements ICSDTO, IsSerializable {


    // Fields    

     private long id;
     private long studiesTypeID;
     private long semesterTypeID;
     private Integer yearNumber;
     private boolean visibleForOrdinaryUsers;

    // Constructors

    public CSSemesterDTO(long id, long studiesTypeID, long semesterTypeID,
			Integer yearNumber, boolean visibleForOrdinaryUsers) {
		super();
		this.id = id;
		this.studiesTypeID = studiesTypeID;
		this.semesterTypeID = semesterTypeID;
		this.yearNumber = yearNumber;
		this.visibleForOrdinaryUsers = visibleForOrdinaryUsers;
	}


	/** default constructor */
    public CSSemesterDTO() {
    }

    
    /** full constructor */
    

   
    // Property accessors

    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }

    
    
    public long getStudiesTypeID() {
		return studiesTypeID;
	}


	public void setStudiesTypeID(long studiesTypeID) {
		this.studiesTypeID = studiesTypeID;
	}


	public long getSemesterTypeID() {
		return semesterTypeID;
	}


	public void setSemesterTypeID(long semesterTypeID) {
		this.semesterTypeID = semesterTypeID;
	}


	public Integer getYearNumber() {
		return yearNumber;
	}


	public void setYearNumber(Integer yearNumber) {
		this.yearNumber = yearNumber;
	}


	public boolean isVisibleForOrdinaryUsers() {
		return visibleForOrdinaryUsers;
	}


	public void setVisibleForOrdinaryUsers(boolean visibleForOrdinaryUsers) {
		this.visibleForOrdinaryUsers = visibleForOrdinaryUsers;
	}


	public String toString() {
		String result;
		result = yearNumber + ", " + semesterTypeID + ", " + studiesTypeID + ", visible: " + visibleForOrdinaryUsers;
		return result;
	}

//	public String toLabel() {
//    	String result;
//    	result = yearNumber.getNumber() + ", " + semesterType.getName() + ", " + studiesType.getName();
//    	return result;
//    }

}